package org.sosie2.mule.transformers;

import org.mule.transformers.AbstractTransformer;
import org.mule.umo.transformer.TransformerException;
import org.apache.axis.Message;
import org.apache.axis.message.SOAPEnvelope;
import org.apache.axis.AxisFault;

public class SOAPMessageToString extends AbstractTransformer 
{
	   private static final long serialVersionUID = 5223698853238962982L;

	    public SOAPMessageToString()
	    {
			this.registerSourceType(org.apache.axis.message.SOAPEnvelope.class);
			this.setReturnClass(String.class);	
	    }
	    public Object doTransform(Object src, String encoding) throws TransformerException
	    {
			String s = "";
			SOAPEnvelope text = (SOAPEnvelope) src;
			s = text.toString();
			return s;
	    }
}
